package com.icexxx.mapper_gen;

import java.util.List;

import cn.hutool.core.io.FileUtil;

public class Main {

    public static void main(String[] args) {
        String path = "C:\\Users\\Administrator\\Desktop\\txt.txt";
        List<String> lines = FileUtil.readUtf8Lines(path);
        Func func = FunctionParse.parse(lines);
        String name = func.getName();
        Param returnParam = func.getReturnParam();
        String comment = func.getComment();
        List<Param> paramList = func.getParamList();
        System.out.println("name=" + name);
        System.out.println("comment=" + comment);
        System.out.println("returnParam=" + returnParam);
        System.out.println("----------------");
        for (Param param : paramList) {
            System.out.println("param=" + param);
        }
        System.out.println("----------------");
        String packageName = "com.icezzz.demo";
        String xml = XmlGen.gen(func, packageName);
        System.out.println(xml);
    }

}
